package com.jvxb.manage.livable.entity;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
/**
 * @author jvxb
 * @since 2022-02-07
 */
@Data
@TableName("assets_cluster")
public class AssetsCluster implements Serializable {

    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "集群名称")
    private String clusterName;
    @ApiModelProperty(value = "集群类型 phy / rds / ecs")
    private String clusterType;
    @ApiModelProperty(value = "数据库类型 mysql / redis / es / mongodb / tidb")
    private String dbType;
    @ApiModelProperty(value = "架构类型 mysql : 1.0 2.0 redis : tuna standard ")
    private String archType;
    @ApiModelProperty(value = "机房地址")
    private String idcCode;
    @ApiModelProperty(value = "冗余字段 机房名称")
    private String idcName;
    @ApiModelProperty(value = "集群环境 prd / pre / press / test / dev")
    private String env;
    @ApiModelProperty(value = "当前使用容量")
    private String useCapacity;
    @ApiModelProperty(value = "当前总容量")
    private String capacity;
    @ApiModelProperty(value = "套餐名称")
    private String packageName;
    @ApiModelProperty(value = "集群版本")
    private String version;
    @ApiModelProperty(value = "扩展字段1")
    private String param1;
    @ApiModelProperty(value = "扩展字段2")
    private String param2;
    @ApiModelProperty(value = "申请人")
    private String creator;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public static final String ID = "id";

    public static final String CLUSTER_NAME = "cluster_name";

    public static final String CLUSTER_TYPE = "cluster_type";

    public static final String DB_TYPE = "db_type";

    public static final String ARCH_TYPE = "arch_type";

    public static final String IDC_CODE = "idc_code";

    public static final String IDC_NAME = "idc_name";

    public static final String ENV = "env";

    public static final String USE_CAPACITY = "use_capacity";

    public static final String CAPACITY = "capacity";

    public static final String PACKAGE_NAME = "package_name";

    public static final String VERSION = "version";

    public static final String PARAM1 = "param1";

    public static final String PARAM2 = "param2";

    public static final String CREATOR = "creator";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
